package com.java2007.hotel.dao;

import com.java2007.hotel.pojo.FoodType;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Reckeys
 * @version V1.0
 * @date 2021/01/22
 **/
public interface FoodTypeDao {
    /**
     * 通过TypeName模糊查询
     * @return
     */
    List<FoodType> finfByTypeName(String typeName) throws SQLException;

    /**
     * 通过typeId删除
     * @param typeId
     * @return
     * @throws SQLException
     */
    int deleteById(Integer typeId) throws SQLException;

    /**
     * 通过typeId查询
     * @param typeId
     * @return
     * @throws SQLException
     */
    FoodType findByTypeId(Integer typeId) throws SQLException;

    /**
     * 更新信息
     * @param foodType
     * @return
     */
    int updateFoodType(FoodType foodType) throws SQLException;

    /**
     * 添加菜类别信息
     * @param foodType
     * @return
     */
    int addFoodType(FoodType foodType) throws SQLException;
}
